package com.chengcang.api.modules.busi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chengcang.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 *
 *
 * @author Zhanli xy321231@163.com
 * @since 1.0.0 2023-01-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("busi_order")
public class BusiOrderEntity extends BaseEntity {


    private Long tenantId;

    private Long paId;

    private String paName;

    private String orderNo;

    private String demandNo;

    //todo 应该是没用, 待跟业务确认
    private BigDecimal totalAmount;

    private BigDecimal noVatPrice;

    private BigDecimal vat;

    private BigDecimal contractTotalPrice;

    private BigDecimal sellerReceivePrice;

    private BigDecimal platformTakeTaxPrice;

    private Integer status;

    @TableField(exist = false)
    private String statusName;

    private Integer payStatus;

    @TableField(exist = false)
    private String payStatusName;


    private Integer sourceType;

    @TableField(exist = false)
    private String sourceTypeName;

    private Integer type;

    @TableField(exist = false)
    private String typeName;

    private Long demandId;

    private String demandName;

    private Long supplyId;

    private String supplyName;

    private Long productId;

    private Long addressId;

    private Long invoiceHeadId;

    private String deliveryInfo;

    private BigDecimal supplyNum;

    private String productUnit;


}
